package com.itheima.wemedia.service;

import com.itheima.common.vo.PageResultVo;
import com.itheima.wemedia.dto.AuthReqDto;
import com.itheima.wemedia.dto.WmNewsDtoSave;
import com.itheima.wemedia.dto.WmNewsPageReqDto;
import com.itheima.wemedia.pojo.WmNews;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.wemedia.vo.WmNewsVo;

import java.util.List;
import java.util.Map;

/**
 * @description <p>自媒体图文内容信息 业务接口</p>
 *
 * @version 1.0
 * @package com.itheima.wemedia.service
 */
public interface WmNewsService extends IService<WmNews> {

    void submit(boolean draft, WmNewsDtoSave wmNewsDtoSave);

    PageResultVo<WmNews> findPage(WmNewsPageReqDto dto);

    WmNews findWmNewsById(Long id);

    void deleteById(Long id);

    void downOrUp(Map<String, String> map);

    PageResultVo findPage4Admin(WmNewsPageReqDto dto);

    void authPass(AuthReqDto dto);

    void authFail(AuthReqDto dto);

    WmNewsVo findById(Long id);

    List<WmNewsVo> list4ArticleSync(WmNewsPageReqDto dto);
}
